package com.zm.tools.util.core.generatecode.commonnew;


import com.zm.tools.util.core.TableMetadateReadUtil;

import java.util.Date;

/**
 * @author zoum
 * @create 2019/1/14 17:49
 */
public class Main {

    public static void main(String[] args) throws Exception{
        TableMetadateReadUtil tableMetadateReadUtil = new TableMetadateReadUtil();
        tableMetadateReadUtil.setDriverClassName("com.mysql.jdbc.Driver");
        tableMetadateReadUtil.setUrl("jdbc:mysql://192.168.26.150:3306/member?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&zeroDateTimeBehavior=CONVERT_TO_NULL");
        tableMetadateReadUtil.setUsername("jdq_test");
        tableMetadateReadUtil.setPassword("Rzj@2017_test");
        GenerateCodeUtil generateCodeUtil = new GenerateCodeUtil();
        generateCodeUtil.setTableMetadateReadUtil(tableMetadateReadUtil);
//        tableMetadateReadUtil.getColumnsInfo("coupon_config");

        generateCodeUtil.generateCode("E:\\git\\zm", "rongzhijia", "back-member", "coupon_config", "member_welfare", "black_list_query_record");

    }

}
